//
//  TopCell.m
//  MyMovie
//
//  Created by apple on 16/5/14.
//  Copyright © 2016年 ljp. All rights reserved.
//

#import "TopCell.h"

@implementation TopCell


- (void)setTop:(Top *)top {

    
    NSURL *url = [NSURL URLWithString:top.imageDic[@"medium"]];
    [_topCellImageView sd_setImageWithURL:url];

    _titleLalbe.text = top.title;

    CGFloat rating = [top.ratingDic[@"average"] doubleValue];
    _ratingLable.text = [NSString stringWithFormat:@"%.1f", rating];

    [_topCellRatingView changeRating:rating];


    
}


@end
